/********************* COPYRIGHT  **********************
* File Name        : if_port.h
* Author           : Levetop Electronics
* Version          : V1.0
* Date             : 2017-9-11
* Description      : 选择不同的驱动接口
********************************************************/
#pragma once

#include "spi.hpp"


// #define RESET  		PBout(15)
// #define CS  		    PBout(12)
// #define SCL  		PBout(13)
// #define SDI  		PCin(2)//MISO
// #define SDO    		PCout(3)//MOSI



void LCD_CmdWrite(uint8_t cmd);
void LCD_DataWrite(uint8_t data);
void LCD_DataWrite_Pixel(uint16_t data);
uint8_t LCD_StatusRead(void);
uint16_t LCD_DataRead(void);

inline uint8_t Scan_Key_delay(const uint32_t ms_)
{
    hal::delay::ms(ms_);
    return true;
}

inline uint8_t Scan_Key()
{
    return true;
}


